:root {
    --Background: #F0ECF4;
    --Primary: #ffa31a;
    --halfPrimary: #fad6a0;
    --Secondary: #808080;
    --Green: #4cd963b2;
    --GreenTransparent: #4cd9637c;
}

.wrapper {
    margin: 100px auto;
    padding: 40px;
    display: flex;
    max-width: 700px;
    background-color: #fff;
    border-radius: 20px;
    -webkit-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
}

.game-container {
    margin: auto;
    display: flex;
    flex-direction: column;
    width: fit-content;
    height: fit-content;
    border: 1px solid var(--Secondary);
}

.row {
    display: flex;
    width: 300px;
    height: 100px;
}

.cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border: 1px solid var(--Secondary);
    font-size: 42px;
    font-weight: 900;
    cursor: pointer;
}

.game-setting {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 35%;
}

.game-setting-players {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-setting-players>label>span {
    padding-left: 20px;
}

.game-setting-players>label>input {
    margin-top: 5px;
    padding: 10px;
    width: 100%;
    height: 30px;
    font-size: 20px;
    background-color: var(--Background);
    border: none;
    border-radius: 6px;
}

.game-setting-score {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-setting-score-row {
    display: flex;
    justify-content: space-between;
}

.game-b__newGame {
    height: 30px;
    border-radius: 6px;
    border: none;
    background-color: var(--Background);
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.game-b__newGame:hover {
    background-color: var(--halfPrimary);
    transition: 0.2s;
}

.alertWin {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 5%;
    left: 50%;
    width: 300px;
    height: 40px;
    border-radius: 6px;
    transform: translateX(-50%);
    background-color: var(--GreenTransparent);
    font-size: 20px;
    z-index: 2;
}

.alertWin__text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

@media (max-width: 650px) {
    .wrapper {
        margin: 0 auto;
        flex-direction: column;
        width: 100%;
        height: 100vh;
        border-radius: 0%;
    }

    .game-container {
        margin: 20px auto;
    }

    .game-setting {
        margin-top: 30px;
        width: 100%;
        height: 40%;
    }

    .alertWin {
        width: 70%;
        height: 70px;
        top: 30%;
        background-color: var(--Green);
    }

    .alertWin__text {
        font-size: 33px;
        font-weight: 700;
    }
}